package com.bestcem.xm.deliver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.bestcem.xm.component.mybatis.format.String2JacksonSerializer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @TableName ds_deliver_embeddeliver
 */
@TableName(value = "ds_deliver_embeddeliver")
@Data
@EqualsAndHashCode(callSuper = true)
public class DeliverEmbedDeliver extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 组织ID
     */
    @TableField(value = "org_id")
    @JsonProperty("org_id")
    private String orgId;

    /**
     * 投放id
     */
    @TableField(value = "deliver_id")
    @JsonProperty("deliver_id")
    private String deliverId;

    /**
     * 问卷id
     */
    @TableField(value = "survey_id")
    @JsonProperty("survey_id")
    private String surveyId;

    /**
     * 问卷链接
     */
    @TableField(value = "survey_link")
    @JsonProperty("survey_link")
    private String surveyLink;

    /**
     * 嵌入代码
     */
    @TableField(value = "embed_code")
    @JsonProperty("embed_code")
    private String embedCode;

    /**
     * 嵌入投放mobile配置
     */
    @TableField(value = "mobile_config")
    @JsonProperty("mobile_config")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String mobileConfig;

    /**
     * 嵌入投放pc配置
     */
    @TableField(value = "pc_config")
    @JsonProperty("pc_config")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String pcConfig;

    /**
     * 是否是发布数据
     */
    @TableField(value = "is_release")
    @JsonProperty("is_release")
    private Integer isRelease;
}